package lab4;

/**
 * <p>Title: Counter class - A simple integer counter</p>
 * <p>Description: CS 235 Lab #3</p>
 * @author This is from the textbook - Nino & Hosch
 * @email  anthony.varghese@uwrf.edu
 * @date   February 1st 2013
 * @team   none
 * 
 */
public class Counter {
  /**
   * Data member: count
   */
  private int count;
  
  /**
   * Create a new Counter, with the count initialized
   * to 0.
   */
  public Counter () {
    count = 0;
  }
  
  /**
   * The number of items counted.
   */
  public int currentCount () {
    return count;
  }
  
  /**
   * Increment the count by 1.
   */
  public void incrementCount () {
    count = count + 1;
  }
  
  /**
   * Reset the count to 0.
   */
  public void reset () {
    count = 0;
  }
 
}